﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class OutClass
    {       
        static void Main(string[] args)
        {
            int num;
            Method(out num);
            Console.WriteLine(num);
        }

        static void Method(out int i)
        {
            i = 10;
        }
    }
}
